import request from "@/utils/request.js";

export const reEnterName = (userId, name) => {
    return request.put('/enterprise/updateName', null, {
        params: { userId, name } // 参数在 URL 查询字符串中
    });
};

export const getEnterprises = (id,name,pageNo,pageSize) => {
    return request.get('/enterprise/getEnterprises', {
        params: {
            id,
            name,
            pageNo,
            pageSize
        }
    });
};
export const getInfo = (id) => {
    return request.get('/enterprise/getInfo', {
        params: {
            id,
        }
    });
};